package rz.timer;

import java.util.Timer;

public class TestTimer {

	/**
	 * 测试Timer,timer中放入多个TimerTask会阻塞
	 * @author dingdahai
	 * Mar 10, 2010 3:02:53 PM
	 * @param args
	 */
	public static void main(String[] args) {
		Timer timer = new Timer();
		timer.schedule(new TestTimerTask(), 1000*10);
		System.out.println("先打印一个A");
		Timer timer2 = new Timer();
		timer2.schedule(new TestTimerTask2(), 1000*4);
		System.out.println("再打印一个B");
	}

}
